import {request} from "../utils/request"

/**
 * 发布文章
 */
export const publishArticle = (data:any)=>{
    return request({
        url:"/articles/add",
        method:"POST",
        data:data
    })
}
/**
 * 发布闲置商品
 */
export const publishGoods = (data:any)=>{
    return request({
        url:"/shop/add",
        method:"POST",
        data:data
    })
}